var http = require("http")

var PORT = 8000;
var SERVER_NAME = "127.0.0.1"

http.createServer(function(req,resp){
	resp.writeHead(200,{'Content-Type':'text/plain'});
	resp.end('hello smark node server\n');
}).listen(PORT,SERVER_NAME);

console.log('server started at [http://'+SERVER_NAME+':'+PORT+']')